<?php

/**
 * @author shuang
 * @date 2016-11-8 10:15:43
 */
use yii\helpers\Url;
?>
<?php if ($this->context->footerShow): ?>
    <div class="footer fixed">
        <div class="group">
            <a href="<?php echo Url::toRoute("site/index"); ?>">
                <i class="<?php echo (strtolower($this->context->id) == "site" || strtolower($this->context->id) == "article" ) ? "selected" : null; ?>"></i>
                <span class="<?php echo (strtolower($this->context->id) == "site" || strtolower($this->context->id) == "article" ) ? "selected" : null; ?>">首页</span>
            </a>
        </div>
        <div class="group">
            <a href="<?php echo Url::toRoute("task/work"); ?>">
                <i class="<?php echo (strtolower($this->context->id) == "task") ? "selected" : null; ?>"></i>
                <span class="<?php echo (strtolower($this->context->id) == "task") ? "selected" : null; ?>">任务</span>
            </a>
        </div>
        <div class="group">
            <a href="<?php echo Url::toRoute("profile/invite"); ?>">
                <i class="<?php echo (strtolower($this->context->id) . "/" . strtolower($this->context->action->id) == "profile/invite") ? "selected" : null; ?>"></i>
                <span class="<?php echo (strtolower($this->context->id) . "/" . strtolower($this->context->action->id) == "profile/invite") ? "selected" : null; ?>">小伙伴</span>
            </a>
        </div>
        <div class="group">
            <a href="<?php echo Url::toRoute("profile/info"); ?>">
                <i class="<?php echo ((strtolower($this->context->id) == "profile" && strtolower($this->context->action->id) !="invite") || strtolower($this->context->id) == "account") ? "selected" : null; ?>"></i>
                <span class="<?php echo ((strtolower($this->context->id) == "profile" && strtolower($this->context->action->id) !="invite") || strtolower($this->context->id) == "account") ? "selected" : null; ?>">我的</span>
            </a>
        </div>
    </div>
<?php endif; ?>